Page({
  data: {
    info: [
      {
        label: '手机号',
        value: '136****4534',
      },
      {
        label: '微信号',
        value: '',
        link: ''
      },
      // {
      //   label: '登录密码',
      //   value: '',
      //   link: '../password/password'
      // }
    ]
  },
  onLoad: function () {
    const self = this
    self.data.info.forEach((item, i) => {
      let value ="info[" + i + "].value"
      if(item.label === '微信号'){
        this.setData({
          [value]: getApp().globalData.userInfo.nickName
        })
      }
    })
  },
})
